package com.pig4cloud.pigx.strategy.bo;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 策略任务-合约计算收益BO
 *
 * @since 2022/11/28 20:25
 */
@Data
public class StrategyTaskContractCalculateProfitBO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 多仓收益
     */
    private BigDecimal profitLong = BigDecimal.ZERO;
    /**
     * 多仓保证金
     */
    private BigDecimal marginLong = BigDecimal.ZERO;
    /**
     * 空仓收益
     */
    private BigDecimal profitShort = BigDecimal.ZERO;
    /**
     * 空仓保证金
     */
    private BigDecimal marginShort = BigDecimal.ZERO;
    /**
     * 收益
     */
    private BigDecimal profit = BigDecimal.ZERO;
    /**
     * 收益率
     */
    private BigDecimal profitRate = BigDecimal.ZERO;
    /**
     * 是否盈利
     */
    private Boolean isProfit;

}
